package net.ix.opal.data;

import java.net.URI;

import android.util.Log;
import net.ix.util.IXHttp;


public class SimpleListAdd{
	private String uri = "http://api.ivanxu.com/a";
	private String SECRET = "9768e16d8ae2041ec4c9227382dea4f0049f4ceb";

	private IXHttp.HttpsResponse resp;
	private IXHttp.HttpsParams params;
	
	private String listTitle;
	
	public SimpleListAdd(String title){
		listTitle = title;
		
		params = new IXHttp.HttpsParams();
		params.setParameter("method", "simpleListAdd");
		params.setParameter("secret", SECRET);
		params.setParameter("title", listTitle);
		resp = IXHttp.post(URI.create(uri), params);
		Log.v("RESP", resp.getContent());
	}
	
	public String respStr(){
		return resp.getContent();
	}
}
